package com.motherchild.admin.mapper;

import com.motherchild.admin.dto.EmployeeDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<EmployeeDTO> selectAllEmployees();
    EmployeeDTO selectEmployeeById(Long id);
    void insertEmployee(EmployeeDTO employeeDTO);
    void updateEmployee(EmployeeDTO employeeDTO);
    void deleteEmployee(Long id);

    List<EmployeeDTO> searchEmployee(EmployeeDTO employeeDTO);
}